package org.bridge.db.bean.xml;

import java.io.Serializable;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;

public class Query implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8006314502039505755L;


	private SortedSet params = new TreeSet();

	/**
	 * Nome logico che associa la tabella risultante dalla query all'oggetto java da riempire con i dati. 
	 */
	private String name = null;
	private String sql = null;


	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}


	public void addParam(DbParam param ){
		params.add(param);
	}

	public SortedSet getParams() {
		return params;
	}

	public void setParams(SortedSet params) {
		this.params = params;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
}
